package com.lipeng.utils;

/**
 * Created by dllo on 18/2/28.
 */
public class AjaxResult {
    //所有数据接口(json数据)的返回格式

    private String Code;
    private String message;
    private Object data;

    public AjaxResult(){
    }

    public AjaxResult(String code, String message, Object data) {
        Code = code;
        this.message = message;
        this.data = data;
    }

    @Override
    public String toString() {
        return "AjaxResult{" +
                "Code='" + Code + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        Code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
